# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=aespipe
pkgver=2.4f
pkgrel=1
groups=('blackarch' 'blackarch-crypto')
pkgdesc='Reads data from stdin and outputs encrypted or decrypted results to stdout.'
arch=('x86_64' 'aarch64')
url='http://loop-aes.sourceforge.net/aespipe/'
license=('GPL')
source=("http://loop-aes.sourceforge.net/$pkgname/$pkgname-v$pkgver.tar.bz2")
sha512sums=('75b6b2069a0e013dbded29b07b990fc783cc04ce05fc37e6591dae7e8190485960735ec1a1af18d065be57d0b7ec23dbe520e920f92e9c01170b7a23eb32eb3f')

build() {
  cd "$pkgname-v$pkgver"

  ./configure --prefix=/usr

  make
}

package() {
  cd "$pkgname-v$pkgver"

  make install DESTDIR="$pkgdir"

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README ChangeLog
}

